/**
 * 
 */
package demo.java.lang.management.vo;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;


/**
 * @author mandy.hu
 * 
 */
public class MetricSpan implements Serializable {

	private static final long serialVersionUID = 2127567753362882915L;

	private String app;
	private String ip;
	private String instance;
	private String metric;
	private Long timestamp;
	private Object value;
	private Map<String, String> tags = new HashMap<String, String>();
	private Boolean isSample;

	public MetricSpan() {}

    @Override
    public String toString() {
        return "MetricSpan{" +
                "app='" + app + '\'' +
                ", ip='" + ip + '\'' +
                ", instance='" + instance + '\'' +
                ", metric='" + metric + '\'' +
                ", timestamp=" + timestamp +
                ", value=" + value +
                ", tags=" + tags +
                ", isSample=" + isSample +
                '}';
    }

    public String getMetric() {
		return metric;
	}

	public Long getTimestamp() {
		return timestamp;
	}

	public Object getValue() {
		return value;
	}

	public String getApp() {
		return app;
	}

	public void setApp(String app) {
		this.app = app;
	}

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getInstance() {
		return instance;
	}

	public void setInstance(String instance) {
		this.instance = instance;
	}

	public void setMetric(String metric) {
		this.metric = metric;
	}

	public void setTimestamp(Long timestamp) {
		this.timestamp = timestamp;
	}

	public void setTags(Map<String, String> tags) {
		this.tags = tags;
	}
	
	/**
	 * @param value the value to set
	 */
	public void setValue(Object value) {
	
		this.value = value;
	}

	public Map<String, String> getTags() {
		return tags;
	}

	private boolean equals(Object a, Object b) {
		return (a == b) || (a != null && a.equals(b));
	}

    public Boolean getIsSample() {
        return isSample;
    }

    public void setIsSample(Boolean isSample) {
        this.isSample = isSample;
    }
}
